package reflect;

public class ReflectTest {
    public static void main(String[] args) throws ClassNotFoundException, InstantiationException, IllegalAccessException {
        Class<?> tClass = Class.forName("reflect.UserService");
        UserService userService = (UserService)tClass.newInstance();
        userService.getData();

    }
}
